package cn.edu.eight.food.util;

import java.io.Serializable;
import java.util.List;

public class Result<T> implements Serializable {
    private String code;
    private String msg;
    private int count;
    private List<T> data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "Result{" +
                "code:" + code +
                ", msg:'" + msg + '\'' +
                ", count:" + count +
                ", data:" + data +
                '}';
    }
}
